<script type="text/javascript" src="${base}/scripts/zjgl/pjgl_pjdh.js"></script>
<form id="form_pjgl_pjdh"  method="post">
    <table style="width:100%" class="tb tab-t">
        <col width="17.5%"/><col width="32.5%"/><col width="17.5%"/><col width="32.5%"/>
        <tr>
            <th >公司名称：</th>
            <td>
                <input   type="text" value="${(pj.nbgs.jc)!''}" class=" input-text " readonly="readonly"
                       />
            </td>
            <th >出票银行：</th>
            <td>
                <input   type="text" value="${(pj.yscpyh)!''}" class=" input-text " readonly="readonly"
                      />
            </td>
        </tr>
        <tr>
            <th > 票据类型：</th>
            <#if pj.pjlx==0>
            <td><input   class="input-text " type="text"
                                    value="银票" readonly="readonly" /> </td>
            <#else>
            <td><input   class="input-text " type="text"
                         value="商票" readonly="readonly" /> </td>
             </#if>
            <th > 票据号码：</th>
            <td>
                <input   class="input-text " type="text"
                         value="${(pj.pjhm)!''}" readonly="readonly" />
            </td>
        </tr>
        <tr>
            <th > 票面金额：</th>
            <td>
                <input   id="pjdh_pjje" class="input-text " type="text"
                        required="true"  value="${(pj.dqje)!''}" readonly="readonly"/>
            </td>
            <#--toDo-->
            <th > 保证金：</th>
            <td>
                <input  class="input-text" type="text"
                        required="true" value="${(pj.bzj)!'0'}" readonly="true" />
            </td>
        </tr>
        <tr>
            <th>到期日：</th>
            <td>
                <input  required="true"
                       class=" input-text " type="text" value="${(pj.dqr)!}" readonly="readonly"/>
            </td>
            <th>备注：</th>
            <td>
                <input  class="input-text" type="text" value="${(pj.bz)!}" readonly="readonly"/>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <div id="pjdh_tool" style="height:auto">
                    <ul class="niu">
                        <li><a href="javascript:void(0)" id="pjdh_add" plain="true">增加 </a><a href="javascript:void(0)" id="pjdh_del" class="del" plain="true"> 删除</a></li>
                    </ul>
                </div>
            </td>
        </tr>
        <tr>
            <table style="width:100% " class="tb tab-t">
                <tr>
                    <td colspan=4>
                        <div>
                            <table id="pjdh_pj_grid" style="width:718px;height:auto"
                                   singleSelect="true">
                                <thead>
                                <tr>
                                    <th name="pj.nbgs.jc" field="nbgs.jc"  width="123" editor="{type:'combobox',options:{valueField:'jc',textField:'jc',editable:false,url:'${base}/organ/gsjg/gsjgMcList?type=1',required:true}}" >公司名称</th>
                                    <th name="pj.yfcpyh.jc" field="yfcpyh.jc" width="88"  editor="{type:'combobox',options:{valueField:'jc',textField:'jc',editable:false,url:'${base}/organ/khh/khhmcList',required:true}}" >出票银行</th>
                                    <th name="a" field="a" width="88"  editor="{type:'combobox',options:{valueField:'text',textField:'text',editable:false,required:true,data: [{id: '0',text: '银票'},{id: '1',text: '商票'}]}}" >票据类型</th>
                                    <th name="pj.pjhm" field="pjhm" width="78" editor="{type:'validatebox',options:{required:true}}" >票据号码</th>
                                    <th name="pj.bzj" field="bzj" width="65" editor="text" required="true">保证金</th>
                                    <th name="pj.dqje" field="dqje" width="83" editor="{type:'numberbox',options: {groupSeparator: ',', precision: 0,required:true}}">票面金额</th>
                                    <th name="pj.dqr" field="dqr" width="85" editor="{type:'datebox',options:{required:true}}" >到期日</th>
                                    <th name="pj.bz" field="bz" width="63" editor="text">备注</th>
                                    <#--<th name="pj.nbgs.id" field="nbgs.id" width="-10" editor="numberbox"></th>-->
                                    <#--<th name="pj.yfcpyh.id" field="yfcpyh.id" width="-10" editor="numberbox"></th>-->
                                    <#--<th name="pj.pjlx" field="pjlx" width="-10" editor="numberbox"></th>-->
                                </tr>
                                </thead>
                            </table>
                        </div>
                    </td>
                </tr>
            </table>
        </tr>
    </table>
</form>


